mod auto_search;
mod calendar;
mod checkbox;
mod date_picker;
mod drawer;
mod input;
mod message;
mod pagination;
mod popover;
mod radio;
mod scrollbar;
mod select;
mod table;
mod time_picker;
mod upload;
mod list_rept;
mod _binder;
mod toast;
mod dialog;
mod module;

pub use auto_search::*;
pub use calendar::Calendar;
pub use checkbox::*;

pub use date_picker::*;
pub use drawer::*;
pub use input::*;
pub use message::*;
pub use pagination::*;
pub use popover::*;
pub use radio::*;
pub use scrollbar::*;
pub use select::*;

pub use table::*;

pub use time_picker::*;
pub use upload::*;
pub use toast::*;
pub use dialog::*;
pub use module::*;

use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub enum ValidType {
    Default,
    Success,
    Warning,
    Error,
}
impl Default for ValidType {
    fn default() -> Self {
        ValidType::Default
    }
}
impl ValidType {
    pub fn as_color_str(&self) -> &'static str {
        match self {
            ValidType::Default => "",
            ValidType::Success => "success",
            ValidType::Warning => "warning",
            ValidType::Error => "error",
        }
    }
}

